package com.vitabuybuy.tv.ui.mine.talent.usercenter

import android.os.Bundle
import com.vitabuybuy.tv.R
import com.vitabuybuy.tv.databinding.ActivityIdentityAuthenticationBinding
import com.vitabuybuy.tv.databinding.ActivityTalentWalletBinding
import com.library.common.base.BaseActivity
import com.vitabuybuy.tv.ui.mine.talent.usercenter.viewmodel.TalentWalletViewModel
import kotlinx.android.synthetic.main.activity_identity_authentication.*

class TalentIdentityAuthenticationActivity :
    BaseActivity<TalentWalletViewModel, ActivityIdentityAuthenticationBinding>() {
    override val isUseBaseTitleBar: Boolean
        get() = true
    override val layoutId: Int
        get() = R.layout.activity_identity_authentication

    override fun initView(savedInstanceState: Bundle?) {
        setTitle(getString(R.string.identity_authentication))
    }

    override fun eventHandling() {
        tvPaperworkPhoto.setOnClickListener {
            UploadIdCardActivity.openActivity(mContext)
        }
    }

    companion object {
        fun openActivity(mContext: BaseActivity<*, *>) {
            mContext.startActivity(null, TalentIdentityAuthenticationActivity::class.java)
        }
    }
}
